package com.shao.Dao;

import com.shao.pojo.Book;

import java.security.PublicKey;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: SJP
 * Date: 2021/5/17
 * Time: 16:29
 * Description: No Description
 */
public interface BookDao {
    public int addBook(Book book);
    public int deleteBookById(Integer id);
    public int updateBook(Book book);
    public Book queryBookById(Integer id);
    public List<Book> queryBooks();
    Integer queryForPageTotalCount();
    List<Book> queryForPageItems(int begin, int pageSize);

    Integer queryForPageTotalCountByPrice(int min ,int max);

    List<Book> queryForPageItemsByPrice(int begin, int pageSize, int max, int min);
}
